package com.ef.domain;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import com.ef.constant.StatusType;

/**
 * CLT 课程情况
 * 
 * @author CYG create:2010-2-3 下午09:43:44
 */
@Entity
public class CorpClass implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	private Long id;

	@Enumerated(value = EnumType.STRING)
	private StatusType status = StatusType.VALID;

	@Temporal(TemporalType.TIMESTAMP)
	private Date startTime;

	@Temporal(TemporalType.TIMESTAMP)
	private Date endTime;
	
	@ManyToOne(fetch = FetchType.EAGER)
	private ClassType classtype;
	
	@ManyToOne(fetch = FetchType.EAGER)
	private Teacher teacher;

	private Integer studendCount;

	@Column(length = 50)
	private String classroom;
	
	@Column(length = 1000)
	private String comments;
 
	private Integer classCount;
	
	@ManyToOne(fetch = FetchType.EAGER)
	private CorpContract contract;
	

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public StatusType getStatus() {
		return status;
	}

	public void setStatus(StatusType status) {
		this.status = status;
	}

	public Date getStartTime() {
		return startTime;
	}

	public void setStartTime(Date startTime) {
		this.startTime = startTime;
	}

	public Date getEndTime() {
		return endTime;
	}

	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}

	public ClassType getClasstype() {
		return classtype;
	}

	public void setClasstype(ClassType classtype) {
		this.classtype = classtype;
	}

	public Teacher getTeacher() {
		return teacher;
	}

	public void setTeacher(Teacher teacher) {
		this.teacher = teacher;
	}

	public Integer getStudendCount() {
		return studendCount;
	}

	public void setStudendCount(Integer studendCount) {
		this.studendCount = studendCount;
	}

	public String getClassroom() {
		return classroom;
	}

	public void setClassroom(String classroom) {
		this.classroom = classroom;
	}

	public Integer getClassCount() {
		return classCount;
	}

	public void setClassCount(Integer classCount) {
		this.classCount = classCount;
	}

	public CorpContract getContract() {
		return contract;
	}

	public void setContract(CorpContract contract) {
		this.contract = contract;
	}

	public String getComments() {
		return comments;
	}

	public void setComments(String comments) {
		this.comments = comments;
	}
}
